@import com.mgfireworks.mgplatform.mgadmin.stock.model.*
@extends("/form_template",title=(isEdit?"修改初始库存":"初始产品库存"))
@args Boolean isEdit
@args Stock stock
@{
	if(stock==null){
		stock=new Stock();
	}
}

<div class="x_content">
	<f_input name="stockId" text="库存编号" value="@stock.getStockId()" @if(isEdit){readonly="readonly"}></f_input>
    <f_input name="productId" text="产品编号" value="@stock.getProductId()"></f_input>
	<f_input name="quantity" text="库存数" value="@stock.getQuantity()"></f_input>
	<f_input name="price" text="价格" value="@stock.getPrice()"></f_input>
	<f_input name="online" text="是否上线" value="@stock.getOnline()"></f_input>
	<f_input name="outOfStock" text="是否缺货" value="@stock.getOutOfStock()"></f_input>
	<f_input name="checkState" text="审核状态" value="@stock.getCheckState()"></f_input>
</div>